//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
// 			VisualNovelToolkit		     /_/_/_/_/_/_/_/_/_/.
// Copyright ©2013 - Sol-tribe.	/_/_/_/_/_/_/_/_/_/.
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

namespace ViNoToolkit{

	/// <summary>
	/// Handles title menu event.
	/// </summary>
	[ AddComponentMenu( "ViNo/Event/TitleMenuEvent" ) ]	
	public class TitleMenuEvent : MonoBehaviour {

		void OnClickTitle(){
			TitleCtrl ctrl = TitleCtrl.Instance;
			if (ctrl != null) {
				ctrl.Show ();
			}
		}

		void OnClickNewGame(){
			TitleCtrl ctrl = TitleCtrl.Instance;
			if (ctrl != null) {
				ctrl.DoNewGame ();		
			}
		}

		void OnClickContinue(){
			ViNoEventManager.Instance.TriggerEvent ("ShowLoadPanel");
		}

		void OnClickLoadItem(){
			TitleCtrl ctrl = TitleCtrl.Instance;
			if (ctrl != null) {
				ctrl.DeactiveTitlePanel ();		
			}
		}
	}

}